define(['./FormPlugin', './FormService'], function(FormPlugin) {
	FormPlugin.controller('FormPageController', ['$scope', 'FormService', function ($scope, FormService) {
		FormService.getFormPage($scope.pageIndex).then(function(formPage) {   
			$scope.formPage = formPage;   
        });
	}]);
});